<template>
    <div class="wrapper">
        <swiper :options="swiperOption">
            <swiper-slide v-for="item of swiperList" :key="item.id">
                <img :src="item.imgURL" alt="" class="swiper-img">
            </swiper-slide>
            <div class="swiper-pagination"  slot="pagination"></div>
        </swiper>
    </div>
</template>
<script>

export default {
    name:"HomeSwiper",
    data(){
        return {
            swiperOption:{
                pagination:".swiper-pagination",
                loop:true,
                autoplay:3000
            },
            swiperList:[{
                id:'0001',
                imgURL:"http://img1.qunarzz.com/piao/fusion/1809/d4/e298dff35d3af802.jpg_750x200_9b0d56c1.jpg"
            },{
                id:'0002',
                imgURL:"http://img1.qunarzz.com/piao/fusion/1809/c6/2467595fffc3b302.jpg_750x200_cca13d51.jpg"
            }]
        }
    }
}
</script>
<style lang="stylus" scoped>
.wrapper >>> .swiper-pagination-bullet-active
    background:#fff
    width:.12rem
    height:.12rem
.wrapper
    overflow:hidden
    width:100%
    height:2rem
    background:#ccc
    .swiper-img
        width:100%
</style>
